﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NetDimension.NanUI;

namespace Millionaire
{
    public partial class Form1 : WinFormium
    {
        public Form1():base("http://res.app.local/index.html")
        {
            InitializeComponent();

            GlobalObject.AddFunction("say").Execute += (_, args) =>
            {
                //args.SetReturnValue("111");
                ExecuteJavascript($"alert('1111')");
            };
            GlobalObject.AddFunction("showDevTools").Execute += (func, args) => Chromium.ShowDevTools();
        }
    }
}
